class Gizmo {
    public void spin() {
        System.out.println("spin");
    }
}

public class FinalArguments {
    void demo1(final Gizmo g) {
        //! g = new Gizmo(); // Illegal -- can't change
        g.spin();
    }

    int demo2(final int i) {
        //! i++; // Illegal -- can't change the basic type
        return i + 1;
    }

    public static void main(String[] args) {
        FinalArguments bf = new FinalArguments();
        bf.demo1(new Gizmo());
        bf.demo2(1);
    }
}
